<template>
    <div>
        <form action="http://192.168.0.121:5555/update" method="post" enctype="multipart/form-data">
            <h2>单图上传</h2>
            <input type="file" name="logo" @click="change">
            <!-- <input type="submit" value="提交"> -->
            <button @click="btn">
                提交
            </button>

        </form>
    </div>
</template>
<script>
import axios from "axios";
export default {
    name: "file",
    data() {
        return {};
    },
    methods: {
        btn(){

        },
        change(evant){
             console.log(`evant>>>>>>>>>>>>>>>`, event.target.files);
        }
    }
};
</script>
<style>
</style>
